@echo off

rem cd to project folder:
cd /D "C:\Users\levyli\eclipse_workspace\IC_COMPILER\src\IC\Parser"


rem create Lexer.java using JFlex:
java JFlex.Main "IC.lex"

rem create Parser.java and LibraryParser.java using JCup:
java java_cup.Main -package IC.Parser -parser Parser < "IC.cup"
java java_cup.Main -package IC.Parser -parser LibraryParser < "Library.cup"
